package com.axxc.jpa.service;

import java.util.List;

import com.axxc.jpa.entity.StudentEntity;

public interface IStudentService {

	// where name like ?%
	List<StudentEntity> findByNameStartingWith(String name);

	// where age >?1 and name like ?%
	List<StudentEntity> readByAgeGreaterThanAndNameStartingWith(Integer age, String name);

	StudentEntity saveStudent(StudentEntity student);

	StudentEntity getStudentById(Long id);

	void deleteById(Long id);

	StudentEntity updateStudent(Long id, StudentEntity student);

	List<StudentEntity> listAllStudent();
}
